<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>template</title>
    <script src="../assets/js/vue.js"></script>
</head>
<body>
    <h1>template</h1>
    <hr>
    <div id="app">
        <!-- {{message}} -->
        <!-- <template id="demo2">
            <h2 style="color:red">{{message}}</h2>
        </template> -->
    </div>
</body>
<script type="x-template" id="demo3">
    <h2 style="color:red">我是script标签模板</h2>
</script>
<script>
    var app = new Vue({
        el:"#app",
        data:{ 
            message:"helloworld"
        },
    //     template:`
    //     <h1 style="color:red">我是选项模板</h1>
    //  `
        // template:'#demo2'
        template:'#demo3'
    })
</script>
</html>